var xtOperateLogsWinDetail;
var xtOperateLogsFormDetail;
function detailXtOperateLogs(){
	var record = grid.getSelectionModel().selected;
	if(record.length == 0){
		msgTishi('请选择要查看明细的项！');
		return;
	}
	initXtOperateLogsFormDetail();
	xtOperateLogsWinDetail = Ext.create('Ext.Window',{
		layout:'fit',
		width:800,
		height:400,
		maximizable:true,
		minimizable:true,
		animateTarget:document.body,
		plain:true,
		modal:true,
		title:'明细信息',
		listeners:{
			minimize:function(win,opts){
				if(!win.collapse()){
					win.collapse();
				}else{
					win.expand();
				}
			}
		},
		items:xtOperateLogsFormDetail,
		buttons:[{
			text:'关闭',
			itemId:'close',
			handler:function(button){
				button.up('window').close();
			}
		}]
	});
	xtOperateLogsWinDetail.show();
	loadFormData(xtOperateLogsFormDetail,'../xtOperateLogsController/getXtOperateLogsById?xt_operate_log_id='+ record.items[0].data.xt_operate_log_id);
}
function initXtOperateLogsFormDetail(){
	xtOperateLogsFormDetail = Ext.create('Ext.FormPanel',{
		xtype:'form',
		waitMsgTarget:true,
		defaultType:'textfield',
		autoScroll:true,
		fieldDefaults:{
			labelWidth:70,
			labelAlign:'left',
			flex:1,
			readOnly:true,
			margin:'2 5 4 5'
		},
		items:[
		{
			fieldLabel:'操作日志ID',
			xtype:'textfield',
			hidden:true,
			name:'xt_operate_log_id',
			allowBlank:false,
			maxLength:32,
			anchor:'100%'
		},
		{
			fieldLabel:'开始时间',
			xtype:'textfield',
			name:'xt_operate_logBegTime',
			maxLength:20,
			anchor:'100%'
		},
		{
			fieldLabel:'结束时间',
			xtype:'textfield',
			name:'xt_operate_logEndTime',
			maxLength:20,
			anchor:'100%'
		},
		{
			fieldLabel:'执行类名',
			xtype:'textfield',
			name:'xt_operate_logClasseName',
			maxLength:2000,
			anchor:'100%'
		},
		{
			fieldLabel:'执行方法',
			xtype:'textfield',
			name:'xt_operate_logMethod',
			maxLength:800,
			anchor:'100%'
		},
		{
			fieldLabel:'方法参数',
			xtype:'textfield',
			name:'xt_operate_logMethodPar',
			maxLength:4294967295,
			anchor:'100%'
		},
		{
			fieldLabel:'执行结果',
			xtype:'textfield',
			name:'xt_operate_logResult',
			maxLength:4294967295,
			anchor:'100%'
		},
		{
			fieldLabel:'耗&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;时',
			xtype:'textfield',
			name:'xt_operate_logTotalTime',
			maxLength:20,
			anchor:'100%'
		},
		{
			fieldLabel:'访问类型',
			xtype:'textfield',
			name:'xt_operate_logType',
			maxLength:20,
			anchor:'100%'
		},
		{
			fieldLabel:'访问地址',
			xtype:'textfield',
			name:'xt_operate_logUri',
			maxLength:200,
			anchor:'100%'
		},
		{
			fieldLabel:'最大内存',
			xtype:'numberfield',
			value:'0',
			name:'xt_operate_logMaxMemory',
			anchor:'100%'
		},
		{
			fieldLabel:'已分配值',
			xtype:'numberfield',
			value:'0',
			name:'xt_operate_logTotalMemory',
			anchor:'100%'
		},
		{
			fieldLabel:'可用内存',
			xtype:'numberfield',
			value:'0',
			name:'xt_operate_logUseMemory',
			anchor:'100%'
		},
		{
			fieldLabel:'剩余空间',
			xtype:'numberfield',
			value:'0',
			name:'xt_operate_logFreeMemory',
			anchor:'100%'
		}
		]
	});
}
